package com.tencent.yumeko;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

@FeignClient(value = "MetadataTransferProducer",
        fallback = MetadataConsumerServiceFallback.class)
public interface MetadataConsumerService {
    /**
     * Get information of producer.
     *
     * @return information of producer
     */
    @GetMapping("/producer/info")
    Map<String, String> info();
}
